package com.hopu.oa.dao.notemanage;


import com.hopu.oa.entity.notemanage.AoaNoteList;
import com.hopu.oa.entity.plan.AttachmentList;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface NoteListDao {


    int insertSelective(AoaNoteList record);

    AoaNoteList selectByPrimaryKey(Integer noteId);


    List<AoaNoteList> selectAllAndPage(Integer userId, String baseKey, Integer index, Integer size);

    /**
     * 查找附件
     *
     * @param id
     * @return
     */
    AttachmentList selectByAttachmentId(Integer id);


}